

createAlbum = function(){
	var data = {
		action: 'create_album',
		album_name: document.getElementById('txt_album_name').value
	};
	
	// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
	jQuery.post(url, data, function(response) {
		document.getElementById('photoList').innerHTML = response;
	});
	
}
